import axios from "axios";

export const getDispatchList = async (params) => {
  const response = await axios.post("/demand/getDispatchList", params);
  return response.data;
};

export const saveServiceUser = async (data) => {
  const response = await axios.post("/demand/saveServiceUser", data);
  return response.data;
};

export const deleteServiceUser = async (data) => {
  const response = await axios.post("/demand/deleteServiceUser", data);
  return response;
};

export const addDemandAbnormal = async (data) => {
  const response = await axios.post("/demandAbnormal/addDemandAbnormal", data);
  return response.data;
};